import {print} from 'nc-lightapp-front';

export default function templatePrint(param_str) {

    let postData = {
        funcode: '60071030',      //功能节点编码，即模板编码
        nodekey: '60071030',//传：tbprint  卡片传：fmprint
        oids: [param_str]   // 单据pk  oids含有多个元素时为批量打印,
    };

    print(
        'pdf',  //支持两类: 'html'为模板打印, 'pdf'为pdf打印
        '/nccloud/hrhi/psndoc/PsndocTemplatePrintAction.do',
        postData
    );
}
